﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Spenta.StreetCare.MVC.Models.ReportViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Edit</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Fields</legend>
                        
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Report.ReportTitle) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Report.ReportTitle)%>
                <%: Html.ValidationMessageFor(model => model.Report.ReportTitle)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Report.ReportWhen)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Report.ReportWhen, String.Format("{0:g}", Model.Report.ReportWhen))%>
                <%: Html.ValidationMessageFor(model => model.Report.ReportWhen)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Report.ReportBy)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Report.ReportBy)%>
                <%: Html.ValidationMessageFor(model => model.Report.ReportBy)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Report.ReportStatusID)%>
            </div>
            <div class="editor-field">
                <%: Html.DropDownListFor(model=>model.Report.ReportStatusID, Model.Statuses)%>
                <%: Html.ValidationMessageFor(model => model.Report.ReportStatusID)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Report.ReportStatusWhen)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Report.ReportStatusWhen, String.Format("{0:g}", Model.Report.ReportStatusWhen))%>
                <%: Html.ValidationMessageFor(model => model.Report.ReportStatusWhen)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Report.ReportCategoryID)%>
            </div>
            <div class="editor-field">
                <%: Html.DropDownListFor(model => model.Report.ReportCategoryID, Model.Categories)%>
                <%: Html.ValidationMessageFor(model => model.Report.ReportCategoryID)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Report.ReportLatitude)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Report.ReportLatitude, String.Format("{0:F}", Model.Report.ReportLatitude))%>
                <%: Html.ValidationMessageFor(model => model.Report.ReportLatitude)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Report.ReportLongitude)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Report.ReportLongitude, String.Format("{0:F}", Model.Report.ReportLongitude))%>
                <%: Html.ValidationMessageFor(model => model.Report.ReportLongitude)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Report.ReportLocation)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Report.ReportLocation)%>
                <%: Html.ValidationMessageFor(model => model.Report.ReportLocation)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Report.ReportImageUrl)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Report.ReportImageUrl)%>
                <%: Html.ValidationMessageFor(model => model.Report.ReportImageUrl)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Report.ReportNotificationTypeID)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Report.ReportNotificationTypeID)%>
                <%: Html.ValidationMessageFor(model => model.Report.ReportNotificationTypeID)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Report.ReportNotificationDetails)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Report.ReportNotificationDetails)%>
                <%: Html.ValidationMessageFor(model => model.Report.ReportNotificationDetails)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Report.ReportFixedImageUrl)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Report.ReportFixedImageUrl)%>
                <%: Html.ValidationMessageFor(model => model.Report.ReportFixedImageUrl)%>
            </div>
            
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

